import 'package:flutter/material.dart';

class StateProvider with ChangeNotifier {
//  服务状态
  bool _serverRun = false;

  get serverRun => _serverRun;

  void setServerRun(bool serverRun) {
    _serverRun = serverRun;
    notifyListeners();
  }

//  ip地址
  String _ip = '0.0.0.0';

  get ip => _ip;

  void setIp(String ip) {
    _ip = ip;
    notifyListeners();
  }

//  服务端口
  String _port = "2333";

  get port => _port;

  void setPort(String port){
    _port = port;
    notifyListeners();
  }

  String _language = "简体中文";

  get language => _language;

  void setLanguage(String language){
    _language = language;
    notifyListeners();
  }
}
